function loadUserInfo(usernameReg, passwordReg, checkboxReg) {
	if ($.cookie("rmbUser") == "true") {
		$(checkboxReg).attr("checked", true);
		$(usernameReg).val($.cookie("username"));
		$(passwordReg).val($.cookie("password"));
		return true;
	}
	return false;
}

//记住用户名密码
function SaveCookie(usernameReg, passwordReg, checkboxReg) {
	if ($(checkboxReg).prop("checked")) {
		var str_username = $(usernameReg).val();
		var str_password = $(passwordReg).val();
		$.cookie("rmbUser", "true", {
			expires : 30
		});
		$.cookie("username", str_username, {
			expires : 30
		});
		$.cookie("password", str_password, {
			expires : 30
		});
	} else {
		$.cookie("rmbUser", "false", {
			expire : -1
		});
		$.cookie("username", "", {
			expires : -1
		});
		$.cookie("password", "", {
			expires : -1
		});
	}
};